import service from "../../utils/request";

export const getOneByKey = (configKey: string): Promise<Result<ListWxAppConfig>> => service.get(`/wxappconfig/key?configKey=${configKey}`)

export const updateWxAppConfig = (id: string, data: WxAppConfig): Promise<Result<ListWxAppConfig>> => service.patch(`/wxappconfig/${id}`, data)
